<?php
include '../models/GetArtWork.php';
$id = $_GET["id"];
$artmodel = new GetArtWork();
$art = $artmodel->getArtById($id);
$jsonResponse = array('id'=>$artpiece->getID(), 'title'=>$artpiece->getTitle(), 'medium'=>$artpiece->getMedium(),
					 'dimension'=>$artpiece->getDim(), 'description'=>$artpiece->getDesc(), 'url'=>$artpiece->getURL(),'thumbnail'=>$artpiece->getThumb());
echo json_encode($jsonResponse);
?>